/**
 * 
 */
package com.yishuki.bluewhale.db.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

/**
 * @author yhzhu
 *
 */
@Entity
@Table(name="TBL_CATEGORY_PRODUCTION")
@IdClass(value = CategoryProductionPK.class)
public class CategoryProduction implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4080171148701821432L;
	
	@Id
	@Column(name="CATEGORY_ID")
	private Long categoryId;
	
	@Id
	@Column(name="PRODUCTION_ID")
	private Long productionId;

	public CategoryProduction(){}
	
	public CategoryProduction(Long categoryId, Long productionId) {
		super();
		this.categoryId = categoryId;
		this.productionId = productionId;
	}

	public Long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	public Long getProductionId() {
		return productionId;
	}

	public void setProductionId(Long productionId) {
		this.productionId = productionId;
	}

	@Override
	public String toString() {
		return "CategoryProduction [categoryId=" + categoryId
				+ ", productionId=" + productionId + "]";
	}
}
